Optimal. Leaf size=160 \[ \frac {3 b e \left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d}+\frac {3 b e (c+d x) \left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d}-\frac {e \left (a+b \tanh ^{-1}(c+d x)\right )^3}{2 d}+\frac {e (c+d x)^2 \left (a+b \tanh ^{-1}(c+d x)\right )^3}{2 d}-\frac {3 b^2 e \left (a+b \tanh ^{-1}(c+d x)\right ) \log \left (\frac {2}{1-c-d x}\right )}{d}-\frac {3 b^3 e \text {PolyLog}\left (2,-\frac {1+c+d x}{1-c-d x}\right )}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.19, antiderivative size = 160, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 10, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.476, Rules used = {6242, 12,
6037, 6127, 6021, 6131, 6055, 2449, 2352, 6095} \begin {gather*} -\frac {3 b^2 e \log \left (\frac {2}{-c-d x+1}\right ) \left (a+b \tanh ^{-1}(c+d x)\right )}{d}+\frac {3 b e \left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d}+\frac {3 b e (c+d x) \left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d}+\frac {e (c+d x)^2 \left (a+b \tanh ^{-1}(c+d x)\right )^3}{2 d}-\frac {e \left (a+b \tanh ^{-1}(c+d x)\right )^3}{2 d}-\frac {3 b^3 e \text {Li}_2\left (-\frac {c+d x+1}{-c-d x+1}\right )}{2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2352
Rule 2449
Rule 6021
Rule 6037
Rule 6055
Rule 6095
Rule 6127
Rule 6131
Rule 6242
Rubi steps
\begin {align*} \int (c e+d e x) \left (a+b \tanh ^{-1}(c+d x)\right )^3 \, dx &=\frac {\text {Subst}\left (\int e x \left (a+b \tanh ^{-1}(x)\right )^3 \, dx,x,c+d x\right )}{d}\\ &=\frac {e \text {Subst}\left (\int x \left (a+b \tanh ^{-1}(x)\right )^3 \, dx,x,c+d x\right )}{d}\\ &=\frac {e (c+d x)^2 \left (a+b \tanh ^{-1}(c+d x)\right )^3}{2 d}-\frac {(3 b e) \text {Subst}\left (\int \frac {x^2 \left (a+b \tanh ^{-1}(x)\right )^2}{1-x^2} \, dx,x,c+d x\right )}{2 d}\\ &=\frac {e (c+d x)^2 \left (a+b \tanh ^{-1}(c+d x)\right )^3}{2 d}+\frac {(3 b e) \text {Subst}\left (\int \left (a+b \tanh ^{-1}(x)\right )^2 \, dx,x,c+d x\right )}{2 d}-\frac {(3 b e) \text {Subst}\left (\int \frac {\left (a+b \tanh ^{-1}(x)\right )^2}{1-x^2} \, dx,x,c+d x\right )}{2 d}\\ &=\frac {3 b e (c+d x) \left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d}-\frac {e \left (a+b \tanh ^{-1}(c+d x)\right )^3}{2 d}+\frac {e (c+d x)^2 \left (a+b \tanh ^{-1}(c+d x)\right )^3}{2 d}-\frac {\left (3 b^2 e\right ) \text {Subst}\left (\int \frac {x \left (a+b \tanh ^{-1}(x)\right )}{1-x^2} \, dx,x,c+d x\right )}{d}\\ &=\frac {3 b e \left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d}+\frac {3 b e (c+d x) \left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d}-\frac {e \left (a+b \tanh ^{-1}(c+d x)\right )^3}{2 d}+\frac {e (c+d x)^2 \left (a+b \tanh ^{-1}(c+d x)\right )^3}{2 d}-\frac {\left (3 b^2 e\right ) \text {Subst}\left (\int \frac {a+b \tanh ^{-1}(x)}{1-x} \, dx,x,c+d x\right )}{d}\\ &=\frac {3 b e \left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d}+\frac {3 b e (c+d x) \left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d}-\frac {e \left (a+b \tanh ^{-1}(c+d x)\right )^3}{2 d}+\frac {e (c+d x)^2 \left (a+b \tanh ^{-1}(c+d x)\right )^3}{2 d}-\frac {3 b^2 e \left (a+b \tanh ^{-1}(c+d x)\right ) \log \left (\frac {2}{1-c-d x}\right )}{d}+\frac {\left (3 b^3 e\right ) \text {Subst}\left (\int \frac {\log \left (\frac {2}{1-x}\right )}{1-x^2} \, dx,x,c+d x\right )}{d}\\ &=\frac {3 b e \left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d}+\frac {3 b e (c+d x) \left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d}-\frac {e \left (a+b \tanh ^{-1}(c+d x)\right )^3}{2 d}+\frac {e (c+d x)^2 \left (a+b \tanh ^{-1}(c+d x)\right )^3}{2 d}-\frac {3 b^2 e \left (a+b \tanh ^{-1}(c+d x)\right ) \log \left (\frac {2}{1-c-d x}\right )}{d}-\frac {\left (3 b^3 e\right ) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1-c-d x}\right )}{d}\\ &=\frac {3 b e \left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d}+\frac {3 b e (c+d x) \left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d}-\frac {e \left (a+b \tanh ^{-1}(c+d x)\right )^3}{2 d}+\frac {e (c+d x)^2 \left (a+b \tanh ^{-1}(c+d x)\right )^3}{2 d}-\frac {3 b^2 e \left (a+b \tanh ^{-1}(c+d x)\right ) \log \left (\frac {2}{1-c-d x}\right )}{d}-\frac {3 b^3 e \text {Li}_2\left (1-\frac {2}{1-c-d x}\right )}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.76, size = 213, normalized size = 1.33 \begin {gather*} \frac {e \left (6 b^2 (-1+c+d x) (b+a (1+c+d x)) \tanh ^{-1}(c+d x)^2+2 b^3 \left (-1+c^2+2 c d x+d^2 x^2\right ) \tanh ^{-1}(c+d x)^3+6 b \tanh ^{-1}(c+d x) \left (a (2 b (c+d x)+a d x (2 c+d x))-2 b^2 \log \left (1+e^{-2 \tanh ^{-1}(c+d x)}\right )\right )+a \left (2 a d x (3 b+2 a c+a d x)-3 a b \left (-1+c^2\right ) \log (1-c-d x)+3 a b \left (-1+c^2\right ) \log (1+c+d x)-12 b^2 \log \left (\frac {1}{\sqrt {1-(c+d x)^2}}\right )\right )+6 b^3 \text {PolyLog}\left (2,-e^{-2 \tanh ^{-1}(c+d x)}\right )\right )}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 2.89, size = 6414, normalized size = 40.09
method | result | size |
risch | \(\text {Expression too large to display}\) | \(1297\) |
derivativedivides | \(\text {Expression too large to display}\) | \(6414\) |
default | \(\text {Expression too large to display}\) | \(6414\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 628 vs.
\(2 (148) = 296\).
time = 0.46, size = 628, normalized size = 3.92 \begin {gather*} \frac {1}{2} \, a^{3} d x^{2} e + \frac {3}{4} \, {\left (2 \, x^{2} \operatorname {artanh}\left (d x + c\right ) + d {\left (\frac {2 \, x}{d^{2}} - \frac {{\left (c^{2} + 2 \, c + 1\right )} \log \left (d x + c + 1\right )}{d^{3}} + \frac {{\left (c^{2} - 2 \, c + 1\right )} \log \left (d x + c - 1\right )}{d^{3}}\right )}\right )} a^{2} b d e + a^{3} c x e + \frac {3 \, {\left (2 \, {\left (d x + c\right )} \operatorname {artanh}\left (d x + c\right ) + \log \left (-{\left (d x + c\right )}^{2} + 1\right )\right )} a^{2} b c e}{2 \, d} + \frac {3 \, a b^{2} {\left (c + 1\right )} e \log \left (d x + c + 1\right )}{2 \, d} - \frac {3 \, a b^{2} {\left (c - 1\right )} e \log \left (d x + c - 1\right )}{2 \, d} + \frac {3 \, {\left (\log \left (d x + c + 1\right ) \log \left (-\frac {1}{2} \, d x - \frac {1}{2} \, c + \frac {1}{2}\right ) + {\rm Li}_2\left (\frac {1}{2} \, d x + \frac {1}{2} \, c + \frac {1}{2}\right )\right )} b^{3} e}{2 \, d} + \frac {24 \, a b^{2} d x e \log \left (d x + c + 1\right ) + {\left (b^{3} d^{2} x^{2} e + 2 \, b^{3} c d x e + {\left (c^{2} - 1\right )} b^{3} e\right )} \log \left (d x + c + 1\right )^{3} - {\left (b^{3} d^{2} x^{2} e + 2 \, b^{3} c d x e + {\left (c^{2} - 1\right )} b^{3} e\right )} \log \left (-d x - c + 1\right )^{3} + 6 \, {\left (a b^{2} d^{2} x^{2} e + {\left (2 \, a b^{2} c d + b^{3} d\right )} x e + {\left ({\left (c^{2} - 1\right )} a b^{2} + b^{3} {\left (c + 1\right )}\right )} e\right )} \log \left (d x + c + 1\right )^{2} + 3 \, {\left (2 \, a b^{2} d^{2} x^{2} e + 2 \, {\left (2 \, a b^{2} c d + b^{3} d\right )} x e + 2 \, {\left ({\left (c^{2} - 1\right )} a b^{2} + b^{3} {\left (c - 1\right )}\right )} e + {\left (b^{3} d^{2} x^{2} e + 2 \, b^{3} c d x e + {\left (c^{2} - 1\right )} b^{3} e\right )} \log \left (d x + c + 1\right )\right )} \log \left (-d x - c + 1\right )^{2} - 3 \, {\left (8 \, a b^{2} d x e + {\left (b^{3} d^{2} x^{2} e + 2 \, b^{3} c d x e + {\left (c^{2} - 1\right )} b^{3} e\right )} \log \left (d x + c + 1\right )^{2} + 4 \, {\left (a b^{2} d^{2} x^{2} e + {\left (2 \, a b^{2} c d + b^{3} d\right )} x e + {\left ({\left (c^{2} - 1\right )} a b^{2} + b^{3} {\left (c + 1\right )}\right )} e\right )} \log \left (d x + c + 1\right )\right )} \log \left (-d x - c + 1\right )}{16 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} e \left (\int a^{3} c\, dx + \int a^{3} d x\, dx + \int b^{3} c \operatorname {atanh}^{3}{\left (c + d x \right )}\, dx + \int 3 a b^{2} c \operatorname {atanh}^{2}{\left (c + d x \right )}\, dx + \int 3 a^{2} b c \operatorname {atanh}{\left (c + d x \right )}\, dx + \int b^{3} d x \operatorname {atanh}^{3}{\left (c + d x \right )}\, dx + \int 3 a b^{2} d x \operatorname {atanh}^{2}{\left (c + d x \right )}\, dx + \int 3 a^{2} b d x \operatorname {atanh}{\left (c + d x \right )}\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \left (c\,e+d\,e\,x\right )\,{\left (a+b\,\mathrm {atanh}\left (c+d\,x\right )\right )}^3 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________